<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta name="author" content="Wink Hosting (www.winkhosting.com)" />
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<link rel="stylesheet" href="images/style.css" type="text/css" />
	<title>Clever DropBox</title>
</head>
<body>
<div id="contenttext">
	  <div class="bodytext" style="padding:12px;" align="justify">
	    <blockquote>
			    <p><span class="orangelogotext">Register</span></p></blockquote></div>
			<div class="panel" align="justify">
				<blockquote>
				<form id="form5" name="form5" method="post" action="/RegisterServlet">
				  <table width="390" height="128" border="0">
				    <tr>
				      <td width="103"><span class="bodytext">User Name:</span></td>
				      <td width="175"><input type="text" name="userNameTextBox" id="userNameTextBox" /></td>
				      <td width="98">&nbsp;</td>
			        </tr>
				    <tr>
				      <td><span class="bodytext">Password:</span></td>
				      <td><input type="password" name="passwordTextBox" id="passwordTextBox" /></td>
				      <td>&nbsp;</td>
			        </tr>
				    <tr>
				      <td><span class="bodytext">Re-enter password:</span></td>
				      <td>
				        <label for="RepasswordTextBox"></label>
				        <input type="password" name="RepasswordTextBox" id="RepasswordTextBox" />
			          </td>
				      <td>&nbsp;</td>
			        </tr>
				    <tr>
				      <td><span class="bodytext">Email:</span></td>
				      <td><input type="text" name="emailTextBox" id="emailTextBox" /></td>
				      <td>&nbsp;</td>
			        </tr>
			      </table>
<br/>
				  <%
				  if(session.getAttribute("error user exist")!=null)
				  {
				  %>
				  		<span class="bodytext"  style="color:red">User name already exist</span>
						<br/>	
				  		<%
				  		
				  		session.removeAttribute("error user exist");
				 		 %>
				  <%
				  } 
				  %>
				  <%
				  if(session.getAttribute("error password")!=null)
				  {
				  %>
				  		<span class="bodytext" style="color:red">Password incorrect</span>
				  		<br/>
				  		<%
				  		
				  		session.removeAttribute("error password");
				 		 %>
				  <%
				  } 
				  %>
				  	<br/>
				    <input type="submit" name="SubmitButton" id="SubmitButton" value="Submit" />
				  </form>
				  <p>&nbsp; </p>
		      </blockquote>
	  </div>
</div>
		
	</div>
</body>
</html>
